Skip to content

feat(gen-ai): add optional memory attributes (store.name, scope, similarity.threshold, expiration_date)#3569

Draft
nagkumar91 wants to merge 2 commits intoopen-telemetry:mainfrom
nagkumar91:proposal/genai-memory-store-name
Draft

feat(gen-ai): add optional memory attributes (store.name, scope, similarity.threshold, expiration_date)#3569
nagkumar91 wants to merge 2 commits intoopen-telemetry:mainfrom
nagkumar91:proposal/genai-memory-store-name

Conversation

@nagkumar91
Copy link
Copy Markdown
Contributor

@nagkumar91 nagkumar91 commented Mar 23, 2026

Summary

Add extended memory attributes split from PR #3250 per reviewer feedback. These are attributes that have 2-3 framework support and benefit from separate review.

Depends on: #3250 (memory operations base)

New Attributes

Attribute Type Req Level Description Framework Support
gen_ai.memory.store.name string opt_in Human-readable memory store name 3/6 (Bedrock, Azure, Letta)
gen_ai.memory.scope enum recommended/conditionally_required Scope: user, conversation, agent, team 5/6 (ADK, Bedrock, Azure, Mem0, CrewAI)
gen_ai.memory.search.similarity.threshold double conditionally_required Minimum similarity score threshold 2/6 (Mem0, Google ADK)
gen_ai.memory.expiration_date string conditionally_required Expiration date (ISO 8601) 2/6 (Mem0, Bedrock)

Existing Attributes Added to Memory Spans

Attribute Spans Req Level
gen_ai.agent.id search_memory, update_memory, delete_memory conditionally_required (agent-scoped)
gen_ai.conversation.id search_memory, update_memory, delete_memory conditionally_required (conversation-scoped)

Span Placement

Attribute create_memory_store search_memory update_memory delete_memory delete_memory_store
store.name opt_in opt_in opt_in opt_in opt_in
scope recommended - - conditionally_required -
similarity.threshold - conditionally_required - - -
expiration_date - - conditionally_required - -
agent.id - conditionally_required conditionally_required conditionally_required -
conversation.id - conditionally_required conditionally_required conditionally_required -

nagkumar91 and others added 2 commits March 31, 2026 13:23
Add semantic conventions for GenAI memory operations — spans and
attributes for memory store lifecycle and memory CRUD.

New spans: create_memory_store, search_memory, update_memory,
delete_memory, delete_memory_store.

New attributes: gen_ai.memory.store.id, gen_ai.memory.store.name,
gen_ai.memory.record.id, gen_ai.memory.scope (enum: user,
conversation, agent, team), gen_ai.memory.record.content,
gen_ai.memory.query.text, gen_ai.memory.search.result.count,
gen_ai.memory.search.similarity.threshold,
gen_ai.memory.expiration_date, gen_ai.memory.importance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…larity.threshold, expiration_date)

Add extended memory attributes split from PR open-telemetry#3250 per reviewer feedback:
- gen_ai.memory.store.name (opt_in on all spans)
- gen_ai.memory.scope (enum: user, conversation, agent, team)
- gen_ai.memory.search.similarity.threshold (conditionally_required)
- gen_ai.memory.expiration_date (conditionally_required)
- gen_ai.agent.id on memory spans (conditionally_required)
- gen_ai.conversation.id on memory spans (conditionally_required)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nagkumar91 nagkumar91 force-pushed the proposal/genai-memory-store-name branch from d473fe2 to d0a5d42 Compare March 31, 2026 20:26
@nagkumar91 nagkumar91 changed the title feat(gen-ai): add gen_ai.memory.store.name attribute feat(gen-ai): add optional memory attributes (store.name, scope, similarity.threshold, expiration_date) Mar 31, 2026
@github-actions
Copy link
Copy Markdown

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 7 days.

@github-actions github-actions bot added the Stale label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant